package com.cakin.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

/**
 * @ClassName: Index
 * @Description: TODO
 * @Date: 2020/6/10
 * @Author: cakin
 */
@Controller
public class Index {
    @RequestMapping("/test")
    public String test(Model model) {
        model.addAttribute("msg","spring boot");
        model.addAttribute("person", Arrays.asList("xiaohua","xiaoming"));
        return "test";
    }
}
